﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


//策略设计模式
namespace StorategyApp
{
    /// <summary>
    /// 计算器(抽象类)
    /// 可以抽象类实现，也可以接口实现
    /// </summary>
    public abstract class Colulator
    {
        public Colulator(int num1,int num2)
        {
            Num1 = num1;
            Num2 = num2;
        }

        public int Num1 { get; set; }
        public int Num2 { get; set; }


        public abstract int Excute();
    }
}
